import os

path = 'D:\\DCIM\\100_PANA'
dir_list = os.listdir(path)
dir_list = sorted(dir_list, key=lambda x: os.path.getmtime(os.path.join(path, x)), reverse=False)
for file_name in dir_list:
    print(file_name)
